<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<a class="easyui-linkbutton" onClick="refreshDesktop()">刷新</a>
	<h3>您有<a id="zxy_dt_pcr_approve_num" href=""></a>条员工职位变动申请待审批</h3>
	<h3>您有<a id="zxy_dt_pcr_edit_num" href=""></a>条员工职位变动申请待修改</h3>
	
	<script>
		refreshDesktop();
		function refreshDesktop(){
			$.ajax({
				url:'../desktop/getRemindMsg',
				success:function(data){
					if(data.success){
						console.log(data);
						$("#zxy_dt_pcr_approve_num").html(data.pcrApproveNum);
						$("#zxy_dt_pcr_edit_num").html(data.pcrEditNum);
					}
				}
			})
		}
		
	</script>
</body>
</html>